<template>
  <div><h1>班级管理</h1>
  <textObj title="姓名" v-model="name"></textObj>{{name}}
  <hr>
  <SelectObj title="请选择学生" :array="studentArray" info="stuId:name"
   v-model="studentId"></SelectObj>
  {{studentId}}
  </div>
</template>

<script>
export default {
    data(){
      return{
        name:"2",
        studentId:5,
        studentArray:[{stuId:1,name:"张三"},{stuId:2,name:"破军"},{stuId:3,name:"大小和"}]
      }
    }
}
</script>

<style>

</style>